package com.cy.service.impl;

import com.cy.service.AccountService;

import java.util.Date;

/**
 * @Author : 残影
 * @Date: 2021-03-09 10:42
 */
public class AccountServiceImpl implements AccountService {
    /**
     * 如果是经常变化的数据，并不适用于注入的方式
     */
    private String name;
    private Integer age;
    private Date birthday;

    public AccountServiceImpl(String name,Integer age,Date birthday){
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    @Override
    public void  saveAccount(){
        System.out.println("service中的saveAccount方法执行了。。。"+name+","+age+","+birthday);
    }
}
